package com.eken.bgm.model.project;

public class Component {
	private String componentName;
	private String scriptLocation;
	
	public Component(String componentName, String scriptLocation) {
		this.componentName = componentName;
		this.scriptLocation = scriptLocation;
	}
	
	public String getName() {
		return this.componentName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((componentName == null) ? 0 : componentName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		String s = (String) obj;
		
		if(s.equals(this.componentName))
			return true;
		return false;
	}
}
